package com.leete.config;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

public class CustomeBeanPostProcesser implements BeanPostProcessor {
    public Object postProcessBeforeInitialization(Object bean, String name) throws BeansException {

        System.out.println("before-------" + name);

        return bean;
    }

    public Object postProcessAfterInitialization(Object bean, String name) throws BeansException {

        System.out.println("after--------" + name);

        return bean;
    }
}
